#include "../include/stu.h"
void delete_c(){
    system("clear");
    int id;
    struct course *p1,*p2;
    p1 = head2;
    p2 = p1;
    printf("输入要删除的课程号\n");
    scanf("%d",&id);
    while(p1 != NULL){
        if(p1->id == id){
            if(p1 == head2)
                head2 = head2->next;
            else
                p2->next = p1->next;
        }
        p2 = p1;
        p1 = p1->next;
    }
    printf("没有该课程号\n");
}
